字が異體字 sequence (IVS) を含むか否か確認する
$ '.'.unpack 'U*'
code:ruby
irb(main):001> '帝󠄁'.unpack 'U*'
irb(main):002> '帝'.unpack 'U*'
$ echo -n . | ruby -e 'puts STDIN.read.unpack("U*").map{|i|"U+#{i.to_s(16)}"}.join(" ")'
code:console
% echo -n 荒 | ruby -e 'puts STDIN.read.unpack("U*").map{|i|"U+#{i.to_s(16)}"}.join(" ")'
U+8352
% echo -n 荒󠄁 | ruby -e 'puts STDIN.read.unpack("U*").map{|i|"U+#{i.to_s(16)}"}.join(" ")'
U+8352 U+e0101